<title>Puzzle Admin-日志管理</title>

<div class="page-header">
    <h4>
        <i class="glyphicon glyphicon-signal"></i>
        日志管理
    </h4>
</div>

<div class="row" id="">
    <div class="col-xs-12">
        <div id="log-gridview" class="gridview">
            <div class="grid-filter">
                <input type="text input-sm" style="height: 29px" class="txt" name="userName" placeholder="用户" />
                <select name="logType" style="height: 29px;width: 160px;">
                    <option value="0">请选择日志类型</option>
                    <option value="1">查看</option>
                    <option value="2">增加</option>
                    <option value="3">删除</option>
                    <option value="4">修改</option>
                </select>
                <input type="text input-sm" style="height: 29px" class="txt" name="logIp" placeholder="访问地址" />
                <input type="text input-sm" style="height: 29px" id="datepicker1" name="beginTimeString" placeholder="开始时间"/>
                <input type="text input-sm" style="height: 29px" id="datepicker2" name="endTimeString" placeholder="结束时间"/>
                <a id="select" class="btn btn-xs btn-action btn-purple" data-action="search" style="margin-top: -2px;margin-left: 10px;"><i class="ace-icon fa fa-search"></i>搜索</a>
            </div>

            {{include file="/inc/module_action.html"}}

            <div class="grid-table">
                <table class="table table-striped table-bordered table-hover table-list table-tree">
                    <thead>
                    <tr>
                        <th width="50">
                            <label class="position-relative">
                                <input type="checkbox" class="ace grid-cb-all" />
                                <span class="lbl"></span>
                            </label>
                        </th>
                        <th width="100">编号</th>
                        <th>日志类型</th>
                        <th>时间</th>
                        <th>访问地址</th>
                        <th>资源</th>
                        <th>用户</th>
                        <th width="120">操作</th>
                    </tr>
                    </thead>

                    <tbody>
                    <tr>
                        <td colspan="8">
                            <div class='loading'><i class='ace-icon fa fa-spinner bigger-200 orange'></i><span class="text">正在加载</span></div>
                        </td>
                    </tr>
                    </tbody>
                </table>
                <div class="pagination-box">

                </div>
            </div>
            <div class="grid-form search-form "></div>
        </div>

        <!-- PAGE CONTENT ENDS -->
    </div><!-- /.col -->
</div><!-- /.row -->

<!-- page specific plugin scripts -->
<script type="text/javascript">
    $('.page-content-area').ace_ajax('loadScripts', [null, null], function() {

        $( "#datepicker1" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: false
        });

        $( "#datepicker2" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: false
        });

        $("#log-gridview").gridview({
            url: "systemlog/list.do",
            form: {
                url: "systemlog/action.do"
            },
            jsonReader: {
                key_field: 'logId'
            },
            columns: [
                {
                    name: "checkbox"
                },
                {
                    name: "logId"
                },
                {
                    name: "logType"
                },
                {
                    name: "logTime"
                },
                {
                    name: "logIp"
                },
                {
                    name: "logMsg"
                },
                {
                    name: "userName"
                },
                {
                    name: "actions",
                    list: [ "delete"]
                }
            ]
        });
    });
</script>